import {defineStore} from 'pinia' 

export const userStore=defineStore({
  id:"userStore",
  state:()=>({
    userObj:{} //存储用户信息的pinia设计的state
  }),
  actions:{
    changeUser(obj){
      this.userObj=obj;
    }
  },
  getters:{},
  persist: true  // persist: true  持久化配置项
})